#include "math.h"
#include "stdlib.h"
#include "stdio.h"

#define M_PI       3.14159265358979323846


double u0(double x)
{
	double y;
	if (x<=5.0)
		y=sin(x*M_PI/5);
	else
		y=0.0;
	return y;
}

double f1(double x)
{
	double y=0;
	if (x>5.0 && x<5.2)
		y=2.0;
	return y;
}

double f2(double x)
{
	double y=0;
	if ((x>4.9999999999999 && x<5.2000000000001) || (x>7.9999999999999 && x<8.20000000001))
		y=2.0;
	return y;
}